package com.myFwk.controller;

import com.myFwk.service.serviceImpl.MessageSendServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title:
 * @Description:
 * @Author: guowl
 * @version： 1.0
 * @Date:2021/10/20
 * @Copyright: Copyright(c)2021 RedaFlight.com All Rights Reserved
 */
@RestController
public class TestController {


    @Autowired
    private MessageSendServiceImpl messageSendService;

    @PostMapping("/test/testThread")
    public void sendMessage(@RequestParam("message") String message) {
        //发送消息
        messageSendService.sendMessage(message);

    }


}
